import request from '@/config/axios'

export interface DrawingDesignerVO {
  id: number
  jobNum: string
  personName: string
  dictSex: number
  phoneNum: string
  cardNum: string
  entryDate: Date
  dimissionDate: Date
  dictStaffStatus: boolean
  orgDeptId: number
  orgTeamId: number
}

// 查询配置中心-制图管理-人员设计列表
export const getDrawingDesignerPage = async (params) => {
  return await request.get({ url: `/config/drawing-designer/page`, params })
}

// 查询配置中心-制图管理-人员设计详情
export const getDrawingDesigner = async (id: number) => {
  return await request.get({ url: `/config/drawing-designer/get?id=` + id })
}

// 新增配置中心-制图管理-人员设计
export const createDrawingDesigner = async (data: DrawingDesignerVO) => {
  return await request.post({ url: `/config/drawing-designer/create`, data })
}

// 修改配置中心-制图管理-人员设计
export const updateDrawingDesigner = async (data: DrawingDesignerVO) => {
  return await request.put({ url: `/config/drawing-designer/update`, data })
}

// 删除配置中心-制图管理-人员设计
export const deleteDrawingDesigner = async (id: number) => {
  return await request.delete({ url: `/config/drawing-designer/delete?id=` + id })
}

// 配置中心-制图管理-人员设计 导出Excel数据
export const exportDrawingDesigner = async (data) => {
  return await request.download({ url: `/config/drawing-designer/export-excel`, data })
}
